package org.concepts.java.generics;

/**
 * Car repair takes a class and provides services to repair it.
 * 
 * @author vvvv
 *
 */
public class CarRepair {
  
  private Car car = null;
  
  public CarRepair(Car car) {
    this.car = car;
  }
  
  public void changeOil() {
    System.out.println("Changing Oil of Car [" + car + "]");
    car.start();
    car.stop();
    System.out.println("Changing oil DONE :-)");
  }
  
  public Car getCar() {
    return car;
  }
  

}
